<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.message.edit")}</title>
<meta name="author" content="EVOLUTION Team" />
<meta name="copyright" content="EVOLUTION" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<style type="text/css">
.roles label {
	width: 150px;
	display: block;
	float: left;
	padding-right: 6px;
}
</style>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
	
	[@flash_message /]
	
	//增加自定义方法:验证输入框是否输入
	$.validator.addMethod("checkInput", 
	  function(value, element, param) {
	    if($(param).length){
	      var paramValue = $(param).val();
	      if ($.trim(paramValue) == ""){
	         return false;
	      } else {
	         return true;
	      }
	    } else {
	       return true;
	    }
	  },
	  "${message("admin.validate.required")}"
	);	
	
	//增加自定义方法:验证选择框是否选择
	$.validator.addMethod("checkSelect",
	  function(value, element, param){
	    var paramValue = $(param).find("option:selected").val();
	    if($.trim(paramValue) == ""){
	       return false;
	    } else {
	       return true;
	    }
	  },
	  "${message("admin.validate.required")}"
	  );
	
	//两抢
	$('#robberySnatchCategoryId').change(function(){
	   $('#newRobInputId').remove();
	   $('#tdRobberySnatchCategoryId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	    var newRobInput = '&nbsp;&nbsp;<input name="robberySnatchCategory" id="newRobInputId" type="text" placeholder="${message("admin.message.anotherInput")}" class="text fieldError"></input>'+
	                   '<label class="fieldError" for="newRobInputId">${message("admin.message.inputRequired")}</label>';
	    $('#robberySnatchCategoryId').after(newRobInput);
	   }
	});
	
	//一盗
	$('#theftCategoryId').change(function(){
	   $('#newTheftInputId').remove();
	   $('#tdTheftCategoryId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	    var newTheftInput = '&nbsp;&nbsp;<input name="theftCategory" id="newTheftInputId" type="text" placeholder="${message("admin.message.anotherInput")}" class="text fieldError"></input>'+
	                   '<label class="fieldError" for="newRobInputId">${message("admin.message.inputRequired")}</label>';
	     $('#theftCategoryId').after(newTheftInput);
	   } 
	});
	
	//
	$('#sharpCategoryId').change(function(){
	   $('#newSharpInputId').remove();
	   $('#tdSharpCategoryId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	    var newSharpInput = '&nbsp;&nbsp;<input name="sharpCategory" id="newSharpInputId" type="text" placeholder="${message("admin.message.anotherInput")}" class="text fieldError"></input>'+
	                   '<label class="fieldError" for="newRobInputId">${message("admin.message.inputRequired")}</label>';
	    $('#sharpCategoryId').after(newSharpInput);  
	   }
	});
	
	//作案区域选择
	$('#criminalAreaChoiceId').change(function(){
	   $('#newCriminalAreaChoiceInputId').remove();
	   $('#tdCriminalAreaChoiceId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	      var newCriminalAreaChoiceInput = '&nbsp;&nbsp;<input type="text" class="text fieldError" id="newCriminalAreaChoiceInputId" name="criminalAreaChoice"></input>';
	      $('#criminalAreaChoiceId').after(newCriminalAreaChoiceInput);
	      $('#newCriminalAreaChoiceInputId').focus();
	   }
	});
	
	//作案主要原因
	$('#criminalMainReasonId').change(function(){
	  $('#newCriminalMainReasonInputId').remove();
	  $('#tdCriminalMainReasonId label[class*="fieldError"]').remove();
	  if($(this).find('option:selected').is(':last-child')){
	    var newInputMainReasonInput = '&nbsp;&nbsp;<input type="text" class="text fieldError" name="criminalMainReason" placeholder="${message("admin.message.anotherInput")}" id="newCriminalMainReasonInputId"></input>'
	                                  '<label class="fieldError" for="newCriminalMainReasonInputId">${message("admin.validate.required")}</label>';
	    $('#criminalMainReasonId').after(newInputMainReasonInput);
	  }
	});
	
	//本地作案原因
	$('#localCriminalReasonId').change(function(){
	  $('#newLocalCriminalReasonInputId').remove();
	  $('#tdLocalCriminalReasonId label[class*="fieldError"]').remove();
	  if($(this).find('option:selected').is(':last-child')){
	    var newInputCriminalReasonInput = '&nbsp;&nbsp;<input type="text" name="localCriminalReason" class="text fieldError" placeholder="${message("admin.message.anotherInput")}" id="newLocalCriminalReasonInputId"></input>'+
	                                      '<label class="fieldError" for="newLocalCriminalReasonInputId">${message("admin.validate.required")}</label>';
	    $('#localCriminalReasonId').after(newInputCriminalReasonInput);
	  }
	});
	
	//酒店落脚
	$('#frequentedAccessHotelStayId').change(function(){
	  if($(this).find('option:selected').is(':last-child')){
	     $('#frequentedAccessHotelNameId').val("");
	     $('#frequentedAccessHotelNameId').attr("disabled", "disabled");
	     $('#frequentedAccessHotelLevelId').val("");
	     $('#frequentedAccessHotelLevelId').attr("disabled", "disabled");
	     $('#hotelNoRegisterNameId').val("");
	     $('#hotelNoRegisterNameId').attr("disabled","disabled");
	     $('#hotelNoRegisterAddressId').val("");    
	     $('#hotelNoRegisterAddressId').attr("disabled", "disabled");
	  }else{
	     $('#frequentedAccessHotelNameId').removeAttr("disabled");
	     $('#frequentedAccessHotelLevelId').removeAttr("disabled");
	     $('#hotelNoRegisterNameId').removeAttr("disabled");
	     $('#hotelNoRegisterAddressId').removeAttr("disabled");
	     $('#hotelNoRegisterAddressId').removeAttr("disabled");
	  }
	});
	
	
	//作案后藏匿本地情况
	$('#addressAfterCrimeCategoryId').change(function(){
	   $('#newAddressAfterCrimeCategoryInputId').remove();
	   $('#tdAddressAfterCrimeCategoryId label[class="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	      var newAddressAfterCrimeCategoryInput = '&nbsp;&nbsp;<input type="text" name="addressAfterCrimeCategory" class="text fieldError" id="newAddressAfterCrimeCategoryInputId"></input>'+
	                                              '<label class="fieldError" for="newAddressAfterCrimeCategoryInputId">${message("admin.validate.required")}</label>';
	      $('#addressAfterCrimeCategoryId').after(newAddressAfterCrimeCategoryInput);
	   }
	});
	
	//黄赌毒情况
	$('#gamblingWhoringDrugCategoryId').change(function(){
	   if($(this).find('option:selected').is(':last-child')){
	     
	   }else{
	      
	   }
	});
	
	//作案工具
	$('#transportationToolsId').change(function(){
	   $('#newTransportationToolsInputId').remove();
	   $('tdTransportationToolsId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	     var newTransportationToolsInput = '&nbsp;&nbsp;<input type="text" name="transportationTools" class="text fieldError" id="newTransportationToolsInputId"></input>'+
	                                             '<label class="fieldError" for="newTransportationToolsInputId">${message("admin.validate.required")}</label>';
	     $('#transportationToolsId').after(newTransportationToolsInput);
	   }
	});
	
	//作案工具来源
	$('#transportationToolSourceId').change(function(){
	  $('#newTransportationToolSourceInputId').remove();
	  $('#tdTransportationToolSourceId label[class="fieldError"]').remove();
	  if($(this).find('option:selected').is(':last-child')){
	     var newTransportationToolSourceInput = '&nbsp;&nbsp;<input type="text" name="transportationToolSource" class="text fieldError" id="newTransportationToolSourceInputId"></input>'+
	                                             '<label class="fieldError" for="newTransportationToolSourceInputId">${message("admin.validate.required")}</label>';	  
	    $('#transportationToolSourceId').after(newTransportationToolSourceInput);
	  }
	});
	
	//账款去向
	$('#illegalMoneyId').change(function(){
	   $('#newIllegalMoneyInputId').remove();
	   $('tdIllegalMoneyId label[class*="fieldError"]').remove();
	   if($(this).find('option:selected').is(':last-child')){
	     var newIllegalMoneyInput = '&nbsp;&nbsp;<input type="text" name="illegalMoney" class="text fieldError" id="newIllegalMoneyInputId"></input>'+
	                                             '<label class="fieldError" for="newIllegalMoneyInputId">${message("admin.validate.required")}</label>';	  
	     $('#illegalMoneyId').after(newIllegalMoneyInput);
	   }
	});
	

	
	// 表单验证
	$inputForm.validate({
		rules: {
		    name: "required",
		    gender: "required",
	        idCardNum: {
		       required: true,
		       maxlength: 18
		    },
		    age: {
	          required: true,
	          maxlength: 2,
	          digits: true
		    },		    
		    criminalFrequent: "required",
		    criminalAreaChoice: {
		      required: true,
		      checkInput: "#newCriminalAreaChoiceInputId"
		    },
		    newCriminalAreaChoiceInputId: "required",
		    criminalMainReason: {
		      required: true,
		      checkInput: "#newCriminalMainReasonInputId"
		    },
		    localCriminalReason: {
		      required: true,
		      checkInput: "#newLocalCriminalReasonInputId"
		    },
		    frequentedAccessHotelStay: "required",
		    addressAfterCrimeCategory: {
		      required: true,
		      checkInput: "#newAddressAfterCrimeCategoryInputId"
		    },
		    gamblingWhoringDrugCategory: "required",
		    fakeIdCardDetail: "required",
		    fraudulentCardDetail: "required",
		    internetOption: "required",
		    driveNumberBool: "required",
		    transportationTools: {
		      required: true,
		      checkInput: "#newTransportationToolsInputId"
		    },
		    transportationToolSource: {
		      required: true,
		      checkInput: "#newTransportationToolSourceInputId"
		    },
		    bootySellCondition: "required",
		    illegalMoney: {
		       required: true,
		       checkInput: "#newIllegalMoneyInputId"
		    }
		}
	});
	
});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a> &raquo; ${message("admin.message.edit")}
	</div>
	<form id="inputForm" action="save.jhtml" method="post">
	    <input type="hidden" name="criminalNumber" value="${criminalNumber}" />
		<ul id="tab" class="tab">
			<li>
				<input type="button" value="${message("admin.message.tableOne")}" />
			</li>
		</ul>
		<table class="input tabContent" id="tableOne">
		    <tr>
		       <td colspan="8" class="styleTitle">
		          ${message("admin.message.tableThreeTitle")}
		       </td>
		    </tr>
		    <!-- The first row -->
			<tr>
			    <th>
			        ${message("admin.message.name")}:
			    </th>
			    <td>
			        ${name}
			    </td>
				<th>
				    ${message("admin.message.gender")}:
				</th>
				<td>
			       [#list genderGroup as masterConfig ]
			          [#if "${gender}" == "${masterConfig.cd}" ]
			             ${masterConfig.decode}
			          [/#if]
			       [/#list]
				</td>
			</tr>
			
			<!-- 2 -->
			<tr>
			    <th>
			        ${message("admin.message.criminalMainReason")}:
			    </th>
			    <td id="tdCriminalMainReasonId">
			       <select id="criminalMainReasonId" name="criminalMainReason">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list criminalMainReasonGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>
			    <th>
			        ${message("admin.message.localCriminalReason")}:
			    </th>
			    <td id="tdLocalCriminalReasonId">
			       <select id="localCriminalReasonId" name="localCriminalReason">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list localCriminalReasonGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>			    
			</tr>
			
			<!-- 3 -->
			<tr>
			    <th>
			        ${message("admin.message.criminalDate")}:
			    </th>
			    <td>
			        <input type="text" id="criminalDate" name="criminalDate" class="text Wdate" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss', maxDate: '#F{$dp.$D(\'criminalDate\')}'});" /> 
			    </td>
			    <th>
			        ${message("admin.message.criminalDateReason")}:
			    </th>
			    <td>
			        <input type="text" name="criminalDateReason" class="text" />
			    </td>
			</tr>
			
			<!-- 4 -->
			<tr>
			    <th>
			       ${message("admin.message.criminalAreaChoice")}:
			    </th>
			    <td>
			       <select name="criminalAreaChoice">
			       <option value="">${message("admin.common.choose")}</option>
			       </select>
			    </td>
			    <th>
			       ${message("admin.message.criminalAreaChoiceReason")}:
			    </th>
			    <td>
			       <input type="text" class="text" name="criminalAreaChoiceReason" />
			    </td>
			</tr>
			
			<!-- 5 -->
			<tr>
			    <th rowspan="5">
			        ${message("admin.message.criminalTotalTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.robCategory")}:
			    </th>
			    <td colspan="2">
			        <select name="robCategory">
			           <option value="">${message("admin.common.choose")}</option>
			        </select>
			    </td>
			</tr>
			<tr>
			     <th>
			         ${message("admin.message.snatchCategory")}:
			     </th>
			     <td td="tdRobberySnatchCategoryId" colspan="2">
			       <select id="robberySnatchCategoryId" name="snatchCategory">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list robberySnatchCategoryGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>			     
			     </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.theftCategory")}:
			    </th>
			    <td id="tdTheftCategoryId" colspan="2">
			       <select id="theftCategoryId" name="theftCategory">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list theftCategoryGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.sharpCategory")}:
			    </th>
			    <td id="tdSharpCategoryId" colspan="2">
			       <select id="sharpCategoryId" name="sharpCategory">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list sharpCategoryGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>
			</tr>
			
			<!-- 6 -->
			<tr>
			    <th>
			        ${message("admin.message.transportationTools")}
			    </th>
			    <td id="tdTransportationToolsId">
			       <select id="transportationToolsId" name="transportationTools">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list transportationToolsGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>		        
			    </td>
			    
			    <th>
			        ${message("admin.message.transportationToolSource")}
			    </th>
			    <td id="tdTransportationToolSourceId">
			       <select id="transportationToolSourceId" name="transportationToolSource">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list transportationToolSourceGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>			
			</tr>			
			
			<!-- 7 -->
			<tr>
			    <th>
			        ${message("admin.message.driveNumberBool")}：
			    </th>
			    <td colspan="3">
			       <select id="driveNumberBoolId" name="driveNumberBool">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>	        
			    </td>
			</tr>
			
			<!-- 8 -->
			<tr>
			    <th>
			        ${message("admin.message.leaveCriminalSceneCategory")}:
			    </th>
			    <td colspan="3">
			        <select name="leaveCriminalSceneCategory">
			          <option value="">${message("admin.common.choose")}</option>
			        </select>
			    </td>			    
			</tr>
			<!--9-->
			<tr>
			    <th>
			        ${message("admin.message.leaveCriminalSceneToolsCategory")}:
			    </th>
			    <td colspan="3">
			        <select name="leaveCriminalSceneToolsCategory">
			          <option value="">${message("admin.common.choose")}</option>
			        </select>
			    </td>			
			</tr>
			<!-- 10 -->
			<tr>
			    <th>
			        ${message("admin.message.leaveCriminalSceneToolsSourceCategory")}:
			    </th>
			    <td colspan="3">
			        <select name="leaveCriminalSceneToolsCategory">
			          <option value="">${message("admin.common.choose")}</option>
			        </select>
			    </td>			
			</tr>
			
			<!-- 11 -->
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.afterCriminalTitle")}:
			    </th>
			</tr>			
			<tr>
			    <th>
			        ${message("admin.message.addressAfterCrimeCategory")}:
			    </th>
			    <td id="tdAddressAfterCrimeCategoryId" colspan="2">
			       <select id="addressAfterCrimeCategoryId" name="addressAfterCrimeCategory">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list addressAfterCrimeCategoryGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>	
			    </td>			
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.addressAfterCrimeArea")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" name="addressAfterCrimeArea" />
			    </td>			
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.addressAfterCrimeAddress")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" name="addressAfterCrimeAddress" />
			    </td>			
			</tr>			
			
			<!-- 12 -->
			<tr>
			    <th rowspan="5">
			        ${message("admin.message.bootySellTitle")}:
			    </th>			    
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.bootySellCondition")}:
			    </th>
			    <td colspan="2">
			       <select id="bootySellConditionId" name="bootySellCondition">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>		
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.bootySellAreaCategory")}:
			    </th>
			    <td colspan="2">
			       <select name="bootySellAreaCategory">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list bootySellPositionGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>			        		        
			    </td>			
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.bootySellOption")}:
			    </th>
			    <td colspan="2">
			       <select name="bootySellOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list bootySellCategoryGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>	        
			    </td>			
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.illegalMoney")}:
			    </th>
			    <td id="tdIllegalMoneyId" colspan="3">
			       <select id="illegalMoneyId" name="illegalMoney">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list illegalMoneyGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>
			</tr>			
			
			<!-- 13 -->
			<tr>
			    <th rowspan="11">
			        ${message("admin.message.gamblingWhoringDrugCategory")}:
			    </th>
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.gambWhorDrug")}:
			    </th>
			    <td colspan="2">
			       <select id="gamblingWhoringDrugCategoryId" name="gamblingWhoringDrugCategory">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonHave as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>			       
			    </td>
			</tr>
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.gamblingExp")}:
			    </th>
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.gamblingArea")}:
			    </th>
			    <td>
			        <input type="text" class="text" name="gamblingArea" />
			    </td>
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.gamblingAddress")}:
			    </th>
			    <td>
			        <input type="text" class="text" name="gamblingAddress" />
			    </td>			
			</tr>
			
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.drugExp")}:
			    </th>			    			   
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.drugArea")}:
			    </th>			
			    <td>
			        <input type="text" class="text" name="drugArea" />
			    </td>			   
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.drugAddress")}:
			    </th>
			    <td>
			        <input type="text" class="text" name="drugAddress" />
			    </td>			
			</tr>
	
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.whoringExp")}
			    </th>
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.whoringArea")}:
			    </th>
			    <td>
			        <input type="text" class="text" name="whoringArea" />
			    </td>			    
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.whoringAddress")}:
			    </th>
			    <td>
			        <input type="text" class="text" name="whoringAddress" />
			    </td>			
			</tr>			
			
			
			<!-- 14 -->
			<tr>
			    <th rowspan="7">
			        ${message("admin.message.frequentedAccessHotelTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.frequentedAccessHotelStay")}
			    </th>
			    <td colspan="2">
			       <select id="frequentedAccessHotelStayId" name="frequentedAccessHotelStay">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>				        
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.frequentedAccessHotelName")}:
			    </th>
			    <td colspan="2">
			       <input type="text" id="frequentedAccessHotelNameId" name="frequentedAccessHotelName" class="text" />
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.frequentedAccessHotelLevel")}
			    </th>
			    <td  colspan="2">
			       <select id="frequentedAccessHotelLevelId" name="frequentedAccessHotelLevel">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list frequentedAccessHotelLevelGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>			    			        
			    </td>			    
			</tr>
			<tr>
			    <td  colspan="3" style="color:red; text-align:center;">
			        ${message("admin.message.hotelWarning")}
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.hotelNoRegisterName")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" id="hotelNoRegisterNameId" name="hotelNoRegisterName" />
			    </td>
			</tr>
			<tr>    
			    <th>
			        ${message("admin.message.hotelNoRegisterAddress")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" id="hotelNoRegisterAddressId" name="hotelNoRegisterAddress" />
			    </td>
			</tr>
			
						
			<!-- 15 -->
			<tr>
			    <th rowspan="4">
			         ${message("admin.message.favoriteAmusementTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.favoriteAmusementOption")}:
			    </th>
			    <td colspan="2">
			       <select name="favoriteAmusementOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list favoriteAmusementOptionGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>			        
			    </td>			   
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.favoriteAmusementArea")}:
			    </th>
			    <td colspan="2">
			       <input type="text" name="favoriteAmusementArea" class="text" />			        
			    </td>			    
			</tr>
			<tr>
			    <th>
			       ${message("admin.message.favoriteAmusementAddress")}:
			    </th>
			    <td colspan="2">
			      <input type="text" class="text" name="favoriteAmusementAddress" />
			    </td>
			</tr>			
			
			<!-- 16 -->
			<tr>
			   <th rowspan="4">
			       ${message("admin.message.frequentedRestaurantOption")}
			   </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.frequentedRestaurantArea")}
			    </th>
			    <td colspan="2">
			        <input type="text" name="frequentedRestaurantArea" class="text" />
			    </td>			    
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.frequentedRestaurantAddress")}
			    </th>
			    <td colspan="2">
			        <input type="text" name="frequentedRestaurantAddress" class="text" />
			    </td>			
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.frequentedRestaurantName")}
			    </th>
			    <td colspan="2">
			        <input type="text" name="frequentedRestaurantName" class="text" />
			    </td>
			</tr>			
			
			<!--  17 -->
			<tr>
			    <th>
			        ${message("admin.message.internetOption")}
			    </th>
			    <td colspan="3">
			       <select id="internetOptionId" name="internetOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>		        
			    </td>
			</tr>
			
			<!-- 18 -->			
			<tr>
			    <th rowspan="5">
			        ${message("admin.message.fakeIdCardTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.fakeIdCardOption")}:
			    </th>
			    <td colspan="2">
			       <select id="fakeIdCardOptionId" name="fakeIdCardOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>	        
			    </td>			    
			</tr>        
			<tr>
			    <th>
			        ${message("admin.message.fakeIdCardDetail")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" name="fakeIdCardDetail" />
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.fakeIdCardArea")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" name="fakeIdCardArea" />
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.fakeIdCardAddress")}:
			    </th>
			    <td colspan="2">
			        <input type="text" class="text" name="fakeIdCardAddress" />
			    </td>
			</tr>			
			
			<!-- 19 -->
			<tr>
			    <th>
			        ${message("admin.message.fraudulentCardDetail")}:
			    </th>
			    <td>
			       <select id="fraudulentCardDetailId" name="fraudulentCardDetail">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list commonBool as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>	        
			    </td>
			    <th>
			        ${message("admin.message.fraudulentCardDetails")}:
			    </th>
			    <td>
			        <input type="text" class="text" name="fraudulentCardDetails" />
			    </td>			    
			</tr>			
			
			<!-- 20 -->
			<tr>
			    <th rowspan="29">
			        ${message("admin.message.anotherGoveBussinessTitle")}:
			    </th>
			</tr>
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.censusDepartTitle")}:
			    </th>
			</tr>
			<tr>
			    <td colspan="2">
			       <select id="censusOptionId" name="censusOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list censusOptionGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>			    
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="censusDepartmentName" type="text" class="text" />
			    </td>
			</tr>
			<tr>    
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="censusDetails" type="text" class="text" />
			    </td>
			</tr>
			
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.temporaryOptionTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="temporaryDepartmentName" type="text" class="text" />
			    </td>
			</tr>
			<tr>    
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="temporaryDetails" type="text" class="text" />
			    </td>
			</tr>
			
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.trafficOptionTitle")}:
			    </th>
			</tr>
			<tr>
			    <td colspan="2">
			       <select id="trafficOptionId" name="trafficOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list trafficOptionGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>			    
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="trafficDepartmentName" type="text" class="text" />
			    </td>
			 </tr>
			 <tr>   
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="trafficDetails" type="text" class="text" />
			    </td>
			</tr>			
				
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.fireFightingOptionTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="fireFightingDepartmentName" type="text" class="text" />
			    </td>
			 </tr>
			 <tr>   
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="fireFightingDetails" type="text" class="text" />
			    </td>
			</tr>	
			
			<tr>
			    <th rowspan="4">
			        ${message("admin.message.reportOptionTitle")}:
			    </th>
			</tr>
			<tr>
			    <td colspan="2">
			       <select id="reportOptionId" name="reportOption">
			       <option value="">${message("admin.common.choose")}</option>
			           [#list reportOptionGroup as masterConfig ]
			             <option value="${masterConfig.cd}">
			                ${masterConfig.decode}
			             </option>
			           [/#list]
			       </select>
			    </td>			    
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="reportDepartmentName" type="text" class="text" />
			    </td>
			</tr>
			<tr>    
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="reportDetails" type="text" class="text" />
			    </td>
			</tr>
			
			<tr>
			    <th rowspan="7">
			        ${message("admin.message.thdOfficeOptionTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="thdOfficeDepartment1" type="text" class="text" />
			    </td>
			 </tr>
			 <tr>   
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="thdOfficeDepartmentDetail1" type="text" class="text" />
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="thdOfficeDepartment2" type="text" class="text" />
			    </td>
			</tr>
			<tr>    
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="thdOfficeDepartmentDetail2" type="text" class="text" />
			    </td>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="thdOfficeDepartment3" type="text" class="text" />
			    </td>
			 </tr>
			 <tr>   
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="thdOfficeDepartmentDetail3" type="text" class="text" />
			    </td>
			</tr>	
			
			<tr>
			    <th rowspan="3">
			        ${message("admin.message.anotherDepartmentTitle")}:
			    </th>
			</tr>
			<tr>
			    <th>
			        ${message("admin.message.commonDepartmentName")}: 
			    </th>
			    <td>
			        <input name="anotherDepartmentName" type="text" class="text" />
			    </td>
			 </tr>
			 <tr>   
			    <th>
			        ${message("admin.message.commonBussinessDetail")};
			    </th>
			    <td>
			        <input name="anotherOptionDetails" type="text" class="text" />
			    </td>
			</tr>
			
			<!-- 21 -->
			<tr>
			    <th rowspan="2">
			        ${message("admin.message.contents")}:
			    </th>
			    <td colspan="3">
			         <textarea style="width: 100%;" name="contents"></textarea>
			    </td>
			</tr>
		</table>
		<table class="input">
			<tr>
				<td style="text-align:center;">
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.jhtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>